//
//  CommonPopView.h
//  TKnowBox
//
//  Created by LiuXubin on 15/3/12.
//  Copyright (c) 2015年 knowin. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "SimDefine.h"

typedef NS_ENUM(NSInteger, PopAniType){
    PAT_None,
    PAT_Scale,
    PAT_HeightUpToDown,
    PAT_HeightDownToUp,
    PAT_Alpha,
};


@interface SimPopKit : UIView

@property (nonatomic, readonly) UIView *backgroudView;
@property (nonatomic, assign) CGFloat backgroudAlpha;
@property (nonatomic, assign) CGRect  backgroudMaskFrame;
@property (nonatomic, assign) BOOL bTapDismiss;
@property (nonatomic, assign) BOOL bInnerTapDismiss;


@property (nonatomic, readonly) UIView *contentView;
@property (nonatomic, assign) CGPoint contentOrigin;

@property (nonatomic, strong) FinishBlock dismissBlock;

- (void)popView:(UIView *)view animateType:(PopAniType)animateType;
- (void)dismiss:(BOOL)animated;

@end
